digraph G {
  0 -> 1 [color=green]
  0 -> 4 [color=green]
  0 -> 7 [color=green]
  1 -> 2 [color=green]
  2 -> 3 [color=green]
  3 -> 1 [color=red]
  4 -> 5 [color=green]
  5 -> 2 [color=blue]
  5 -> 6 [color=green]
  5 -> 7 [color=blue]
}